package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.service.TmMounterService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-05-31
 */
@Api(tags = "TmMounterController")
@RestController
@RequestMapping("/myfactorysupport/tm-mounter")
public class TmMounterController {
    @Autowired
    private TmMounterService tmMounterService;

    @ApiOperation(value = "取得实装机一览")
    @GetMapping(value = "GetMounterList")
    public RespBean GetMounterList(){
        return tmMounterService.GetMounterList();
    }

    @ApiOperation(value="根据产线号取得实装机")
    @GetMapping(value = "GetMounterByLineId")
    public RespBean GetMounterByLineId(String lineId){return tmMounterService.GetMounterByLineId(lineId);}
}

